// 所属公司
import request from "@/utils/https/requests";

// 列表
export function topDwInfoList(data: any) {
    return request({
        url: "/topDwInfo/list", method: "post", data,
    });
}

// 添加
export function postAddTopDwInfo(data: any) {
    return request({
        url: "/topDwInfo/postAdd", method: "post", data,
    });
}

// 修改
export function postModTopDwInfo(data: any) {
    return request({
        url: `/topDwInfo/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteTopDwInfo(id: string) {
    return request({
        url: `/topDwInfo/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteTopDwInfo = (id) => {
    return request({
        url: `/topDwInfo/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function topDwInfoDetail(id: string) {
    return request({
        url: `/topDwInfo/detail/${id}`, method: "post",
    });
}